#include "../source/server.hpp"

using std::cout;
using std::endl;
int main()
{
    Socket client_sock;
    client_sock.CreateClient(8080, "127.0.0.1");
    for(int i = 0; i < 5; i++)
    {
        std::string str = "hehehehahash dad";
        client_sock.Send(str.c_str(), str.size());
        char buffer[1024]{0};
        int ret = client_sock.Recv(buffer, 1023);
        INFO_LOG("%s", buffer);
        sleep(1);
    }
    while(1) sleep(1);
    return 0;
}